package com.meowcook.pojo.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-05-15
 * Time: 17:10
 */
@Data
@ApiModel("评论点赞操作参数")
public class LikeCommentDTO {

    @ApiModelProperty(value = "评论点赞id")
    private Long id;

    @JsonIgnore
    private Long userId;

    @NotNull
    @ApiModelProperty(value = "评论id", required = true)
    private Long commentId;

    @NotNull
    @ApiModelProperty(value = "是否点赞, 0-否，1-是", required = true)
    private Byte isLiked;
}
